<template>
  <div>
    <navHeader v-if="this.$root.reload"/>
    <myloading v-if="this.$root.loading"></myloading>
    <nuxt/> <!-- 内容主体 -->

  </div>
</template>
<script>
import navHeader from '~/components/common/navHeader.vue';
import myloading from '~/components/common/loading.vue';

export default {
  data() {
    return {
      hackReset: true,
    };
  },
  created() {
    this.isreload();
  },
  methods: {
    isreload() {
      this.hackReset = false;// 销毁组件
      this.$nextTick(() => {
        this.hackReset = true;// 重建组件
      });
    },
  },
  head: {
    title: '办事处绩效考核管理系统',
    meta: [
      { 'http-equiv': 'Content-Type', content: 'text/html;charset=UTF-8' },
      { 'http-equiv': 'refresh', content: '5000' },
    ],
    link: [
      { rel: 'stylesheet', href: '//at.alicdn.com/t/font_820838_s6wej1tcg0b.css' },
    ],
    script: [
    ],
  },
  components: {
    navHeader,
    myloading,
  },
};
</script>
<style scoped lang="stylus" rel="stylesheet/stylus">
  .page
    min-height: 100%
</style>
